package com.spark.lola.logistics.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.spark.lola.support.mybatis.entity.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

/**
 * @author: Zhi-peng wang
 * @date: 2020/04/26 15:47
 * 货运单商品信息
 **/
@Getter
@Setter
@ApiModel(value = "OrderProduct", description = "货运单商品信息")
@TableName("logistics_order_product")
public class OrderProduct extends BaseModel {

    @ApiModelProperty(name = "orderId", value = "订单id")
    private Long orderId;

    @ApiModelProperty(name = "productId", value = "货品id")
    private Long productId;

    @ApiModelProperty(name = "productNo", value = "货号")
    private String productNo;

    @ApiModelProperty(name = "name", value = "货品名称")
    private String name;

    @ApiModelProperty(name = "weight", value = "重量（t）")
    private BigDecimal weight;

    @ApiModelProperty(value = "是否部分退货（0-否，1-是）")
    private Integer isReturn;

}
